---
layout: default
---

<article class="index">
  <h1 class="page-title">所有文章</h1>
  <div class="message">多学一点知识，少写一行代码。</div>

  {% for post in site.posts %}
    {% assign currentdate = post.date | date: "%Y" %}
    {% if currentdate != date %}
      {% unless forloop.first %}</ul>{% endunless %}
      <h2 id="year-{{post.date | date: '%Y'}}">{{currentdate}}</h2>
      <ul class="related-posts">
      {% assign date = currentdate %}
    {% endif %}
    <li>
      <div class="heading">
        <a href="{{site.baseurl}}{{post.url}}"><span>{{post.title}}</span></a>
        <span class="timestamp">{{post.date | date: "%m/%d"}}</span>
      </div>
    </li>
    {% if forloop.last %}</ul>{% endif %}
  {% endfor %}
</article>
<p style="text-align:center;font-size: 12px;">备案/许可证编号：<a href="https://beian.miit.gov.cn/#/" target="_blank">黔ICP备18000696号-8</a></p>